.class Lcom/estrongs/android/pop/esclasses/j$c;
.super Landroid/os/Handler;
.source "ESMediaController.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/pop/esclasses/j;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/pop/esclasses/j;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/esclasses/j;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/esclasses/j$c;->a:Lcom/estrongs/android/pop/esclasses/j;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 3

    .line 1
    iget p1, p1, Landroid/os/Message;->what:I

    const/4 v0, 0x1

    if-eq p1, v0, :cond_1

    const/4 v0, 0x2

    if-eq p1, v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    iget-object p1, p0, Lcom/estrongs/android/pop/esclasses/j$c;->a:Lcom/estrongs/android/pop/esclasses/j;

    invoke-static {p1}, Lcom/estrongs/android/pop/esclasses/j;->h(Lcom/estrongs/android/pop/esclasses/j;)I

    move-result p1

    .line 3
    iget-object v1, p0, Lcom/estrongs/android/pop/esclasses/j$c;->a:Lcom/estrongs/android/pop/esclasses/j;

    invoke-static {v1}, Lcom/estrongs/android/pop/esclasses/j;->i(Lcom/estrongs/android/pop/esclasses/j;)Z

    move-result v1

    if-nez v1, :cond_2

    iget-object v1, p0, Lcom/estrongs/android/pop/esclasses/j$c;->a:Lcom/estrongs/android/pop/esclasses/j;

    invoke-static {v1}, Lcom/estrongs/android/pop/esclasses/j;->b(Lcom/estrongs/android/pop/esclasses/j;)Z

    move-result v1

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/estrongs/android/pop/esclasses/j$c;->a:Lcom/estrongs/android/pop/esclasses/j;

    invoke-static {v1}, Lcom/estrongs/android/pop/esclasses/j;->j(Lcom/estrongs/android/pop/esclasses/j;)Landroid/widget/MediaController$MediaPlayerControl;

    move-result-object v1

    invoke-interface {v1}, Landroid/widget/MediaController$MediaPlayerControl;->isPlaying()Z

    move-result v1

    if-eqz v1, :cond_2

    .line 4
    invoke-virtual {p0, v0}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v0

    .line 5
    rem-int/lit16 p1, p1, 0x3e8

    rsub-int p1, p1, 0x3e8

    int-to-long v1, p1

    invoke-virtual {p0, v0, v1, v2}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    goto :goto_0

    .line 6
    :cond_1
    iget-object p1, p0, Lcom/estrongs/android/pop/esclasses/j$c;->a:Lcom/estrongs/android/pop/esclasses/j;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/esclasses/j;->a()V

    :cond_2
    :goto_0
    return-void
.end method
